
    <include file="public@head"/>
    <block name="seo">
        <title>{$site_info.site_name|default=''}-{$article.post_title}</title>
        <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
        <meta name="description" content="{$site_info.site_seo_description|default=''}">
        <link rel="stylesheet" href="__TMPL__/public/assets/css/message.css?v=3" />
    </block>
    <div class="doc-container" id="doc-container">
        <div class="container-fixed">
            <div class="col-content" style="width:100%">
                <div class="inner">
                    <article class="article-list">
                        <input type="hidden" value="@Model.BlogTypeID" id="blogtypeid" />
                        <section class="article-item">
                            <aside class="title" style="line-height:1.5;">
                                <h4>{$article.post_title}</h4>
                                <p class="fc-grey fs-14">
                                    <small>
                                        作者：<a href="javascript:void(0)" target="_blank" class="fc-link">{$article.post_source}</a>
                                    </small>
                                    <small class="ml10">浏览量：<i class="readcount">{$article.post_hits}</i></small>
                                    <small class="ml10">更新于 <label>{:date('Y-m-d H:i',$article.published_time)}</label> </small>
                                </p>
                            </aside>
                            <div class="time mt10" style="padding-bottom:0;">
                                <span class="day">{:date('d', $article.published_time)}</span>
                                <span class="month fs-18">{:date('m', $article.published_time)}<small class="fs-14">月</small></span>
                                <span class="year fs-18">{:date('Y', $article.published_time)}</span>
                            </div>
                            <div class="content artiledetail" style="border-bottom: 1px solid #e1e2e0; padding-bottom: 20px;">
                                {$article.post_content}
                                <div class="copyright mt20">
                                    <p class="f-toe fc-black">
                                        非特殊说明，本文版权归 无限。 所有，转载请注明出处.
                                    </p>
                                    <p class="f-toe">
                                        本文标题：
                                        <a href="javascript:void(0)" class="r-title">{$article.post_title}</a>
                                    </p>
                                    <!--<p class="f-toe">
                                        本文网址：
                                        <a href="#">{:cmf_url('portal/Article/index',array('id'=>$article['id']))}</a>
                                    </p>-->
                                </div>
<!--                                <div id="aplayer" style="margin:5px 0"></div>-->
<!--                                <h6>延伸阅读</h6>-->
<!--                                <ol class="b-relation"></ol>-->

                            </div>

                            <!--<div class="bdsharebuttonbox share" data-tag="share_1">
                                <ul>
                                    <li class="f-praise"><span><a class="s-praise"></a></span></li>
                                    <li class="f-weinxi"><a class="s-weinxi" data-cmd="weixin"></a></li>
                                    <li class="f-sina"><a class="s-sina" data-cmd="tsina"></a></li>
                                    <li class="f-qq" href="#"><i class="fa fa-qq"></i></li>
                                    <li class="f-qzone"><a class="s-qzone" data-cmd="qzone"></a></li>
                                </ul>
                            </div>
                            <div class="f-cb"></div>
                            <div class="mt20 f-fwn fs-24 fc-grey comment" style="border-top: 1px solid #e1e2e0; padding-top: 20px;">
                            </div>
                            <fieldset class="layui-elem-field layui-field-title">
                                <legend>发表评论</legend>
                                <div class="layui-field-box">
                                    <div class="leavemessage" style="text-align:initial">
                                        <form class="layui-form blog-editor" action="">
                                            <input type="hidden" name="articleid" id="articleid" value="@Model.ID">
                                            <div class="layui-form-item">
                                                <textarea name="editorContent" lay-verify="content" id="remarkEditor" placeholder="请输入内容" class="layui-textarea layui-hide"></textarea>
                                            </div>
                                            <div class="layui-form-item">
                                                <button class="layui-btn" lay-submit="formLeaveMessage" lay-filter="formLeaveMessage">提交留言</button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </fieldset>
                            <ul class="blog-comment" id="blog-comment"></ul>-->
                            <php>
                                $user = session('user');
                                if(empty($user)){
                                $uid = 1;
                                }else{
                                $uid = $user['id'];
                                }
                                $param=[
                                    /*你要评论内容的 id*/
                                    'object_id'=>$article['id'],
                                    /*你要评论内容所在表，不带表前缀*/
                                    'table_name'=>"portal_post",
                                    /*你要评论内容的标题或名称*/
                                    'object_title'=>$article['post_title'],
                                    /*你要评论内容的查看地址，cmf_url_encode用法和 cmf_url类似*/
                                    'url'=>cmf_url_encode('portal/Article/index',array(
                                    'id'=>$article['id']
                                    )) ,
                                    'user_id'=>$uid,//5.0.180123新增
                                ];
                                $comment=hook_one('comment',$param);
                            </php>
                            {$comment}
                        </section>
                    </article>
                </div>
            </div>
        </div>
    </div>

    <include file="public@foot"/>

    <block name="js">
        <script src="__TMPL__/public/assets/js/pagecomment.js"></script>
        <script src="__TMPL__/public/assets/js/pagemessage.js?v=3"></script>
    </block>
